#include <iostream>
#include <memory>
#include "nfw.h"

using namespace std;

int main(int argc, char *argv[])
{
	auto_ptr<nfw> nfwvar(new nfw(argc, argv));
	if (nfwvar->isValid())
	{
		return 0;
	} else {
		cout << "Invalid rule!" << endl;
		cout << nfwvar->getFalidRule() << endl;
		return 1;
	}
}